package com.piik.mall.auth.feign;

import com.piik.common.utils.R;
import com.piik.mall.auth.vo.LoginVO;
import com.piik.common.dto.SocialUserDTO;
import com.piik.mall.auth.vo.UserRegisterVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient("mall-member")
public interface MemberFeignService {

    //完成注册
    @PostMapping("/member/member/register")
    public R register(@RequestBody UserRegisterVO vo);

    // 登录
    @RequestMapping("member/member/login")
    R login(LoginVO loginVO);

    @RequestMapping("/member/member/oauth2/login")
    public R socialLogin(@RequestBody SocialUserDTO vo);
}
